package com.blogsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blogsystem.entity.Article;
import com.blogsystem.entity.Comment;

import java.util.List;

public interface CommentService extends IService<Comment> {

    /**
     * 获取用户的所有评论
     * @param userId 用户ID
     * @return 评论列表
     */
    List<Comment> getAllCommentsByUserId(Integer userId);
    List<Comment> getCommentsByArticleId(Integer articleId);

}